#ifndef PAD_H
#define PAD_H
#define INPAD_MENU_BOX_X (30)
#define INPAD_MENU_BOX_Y (30)
#define INPAD_MENU_BOX_WIDTH (150)
#define INPAD_MENU_BOX_HEIGHT (70)
#define INPAD_MENU_BOX_COLOR (rgb2col(20,20,80))

#define INPAD_MENU_X (35)
#define INPAD_MENU_Y (35)

#define INPAD_MENU_COUNT 3
#define INPAD_MENU_ITEM_LEN 20
#define INPAD_MENU_ITEM_COLOR (rgb2col(0,100,0))
#define INPAD_MENU_ITEM_SELECTED_COLOR (rgb2col(0,100,100))
#define INPAD_MENU_ITEM_SPACE 10

#define INPAD_MENU_SAVE 0
#define INPAD_MENU_RELOAD 1
#define INPAD_MENU_BACK_TO_MENU 2

unsigned char* m_padbuffer;
int m_padtxtlen;
int m_padbufferpos;
int m_padfontcolor;
int m_padfontsize;

int m_inpad_menu_active;

int InitPad(unsigned char* buffer, int txtlen, int cursorpos, int color, int fontsize);
int DrawPad(int x, int y);
int UpdateKeyPad(int isSave);
int DrawInPadMenu();
int UpdateInPadMenu();
int DeletePad();
int GetPadLen();
#endif